Fields
| Field | Type | Description |
|---|---|---|
PacketId | number | The ID of the packet. |
Size | number | The size of the packet data. |
Priority | number | The priority of the packet. |
AsBuffer | buffer | The data of the packet as a buffer. |
AsArray | table | The data of the packet as an array. |
AsString | string | The data of the packet as a string. |
Reliability | number | The reliability mode of the packet. |
OrderingChannel | number | The ordering channel of the packet used for ordered traffic. |
Methods
| Method | Description |
|---|---|
SetData(data: buffer | table | string | {number}): () | Sets the packet’s payload. |
Block(): () | Blocks the packet from being sent. |
